# -*- coding: utf-8 -*-
"""
-----------------------------------------------------------------
    File Name   : constant.py
    Description : 通用常量
    Author      : DuanGe
    Created On  : 2024/11/19
    Email       : duangeali@aliyun.com
    Version     : 1.0.0
    Copyright   : Copyright (c) 2024 DuanGe
    License     : Apache License 2.0
-----------------------------------------------------------------
"""

LOGS_FILE_PATH = "./logs"
"""
日志文件存储路径
"""

DATA_FILE_PATH = "./data"
"""
数据文件存储路径
"""

SCHOOL_FILE_PATH = "./data/school.json"
"""
学校信息配置文件路径
"""

USER_FILE_PATH = "./data/user.json"
"""
用户信息配置文件路径
"""

ROOM_FILE_PATH = "./data/room.json"
"""
教室信息配置文件路径
"""

ROOM_SEAT_FILE_PATH = "./data/room_seat.json"
"""
教室和座位信息配置文件路径
"""

GRAB_SEAT_FILE_PATH = "./data/grab_seat.json"
"""
抢座信息配置文件路径
"""

RESERVE_HISTORY_FILE_PATH = "./data/reserve_history.json"
"""
用户预约历史记录信息配置文件路径
"""

# API接口配置

SCHOOL_URL = "http://app.goldlib.com.cn/apps/master/unitList.json"
"""
获取学校列表的API URL
"""

USER_URL = "interfacss/user/baseinfor"
"""
获取用户信息的API URL
"""

UP_TOKEN_URL = "interface/readingroom/updatetoken"
"""
更新Token，获取Cookie的API URL
"""

ROOM_URL = "interface/readingroom/getroomlist"
"""
获取教室列表的API URL
"""

AUTHENTICATION_URL = "interface/readingroom/checktimecanbesk"
"""
获取认证，检查是否可以开始的API URL
"""

CURRENT_ROOM_URL = "interface/readingroom/getbaskListinfor"
"""
获取当前时间段指定教室的详细信息的API URL
"""

CURRENT_ROOM_SEAT_URL = "interface/readingroom/getcanbesktablelist"
"""
获取当前时间段指定教室的座位信息的API URL
"""

BESK_SEAT_URL = "interface/readingroom/beskdata"
"""
预约座位的API URL
"""

USER_BESK_URL = "interface/readingroom/getdespeakdata"
"""
获取用户预约记录的API URL
"""

CLOCK_IN_URL = "interface/readingroom/beskreadersigin"
"""
座位签到的API URL
"""
